package com.bub.pay.framework.redis.redisson.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/** 
 * @ClassName: RedissonProperties 
 * @Description:  Redisson配置装载
 * @author Leo
 * @version V1.0   
 */
@ConfigurationProperties(prefix = "redisson")
public class RedissonProperties {

	private int timeout = 3000;

	private String address;

	private String password;

	private int connectionPoolSize = 64;

	private int connectionMinimumIdleSize = 10;

	private int slaveConnectionPoolSize = 250;

	private int masterConnectionPoolSize = 250;

	private String[] sentinelAddresses;
	
	private String[] clusterAddresses;

	private String masterName;

	public int getTimeout() {
		return timeout;
	}

	public void setTimeout(int timeout) {
		this.timeout = timeout;
	}

	public int getSlaveConnectionPoolSize() {
		return slaveConnectionPoolSize;
	}

	public void setSlaveConnectionPoolSize(int slaveConnectionPoolSize) {
		this.slaveConnectionPoolSize = slaveConnectionPoolSize;
	}

	public int getMasterConnectionPoolSize() {
		return masterConnectionPoolSize;
	}

	public void setMasterConnectionPoolSize(int masterConnectionPoolSize) {
		this.masterConnectionPoolSize = masterConnectionPoolSize;
	}

	public String[] getSentinelAddresses() {
		return sentinelAddresses;
	}

	public void setSentinelAddresses(String sentinelAddresses) {
		this.sentinelAddresses = sentinelAddresses.split(",");
	}

	public String[] getClusterAddresses() {
		return clusterAddresses;
	}

	public void setClusterAddresses(String clusterAddresses) {
		this.clusterAddresses = clusterAddresses.split(",");
	}

	public String getMasterName() {
		return masterName;
	}

	public void setMasterName(String masterName) {
		this.masterName = masterName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public int getConnectionPoolSize() {
		return connectionPoolSize;
	}

	public void setConnectionPoolSize(int connectionPoolSize) {
		this.connectionPoolSize = connectionPoolSize;
	}

	public int getConnectionMinimumIdleSize() {
		return connectionMinimumIdleSize;
	}

	public void setConnectionMinimumIdleSize(int connectionMinimumIdleSize) {
		this.connectionMinimumIdleSize = connectionMinimumIdleSize;
	}

}
